package c.c.b.b.d;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import c.c.b.b.f.o;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/* compiled from: FileLoader */
public class c {
    public final Map<String, b> a;
    public final Handler b = new Handler(Looper.getMainLooper());
    public final o c;
    public Context d;

    /* compiled from: FileLoader */
    public class b {
        public String a;
        public String b;
        public List<a> c;
        public e d;

        public b(String str, String str2, a aVar, boolean z) {
            this.a = str;
            this.b = str2;
            a(aVar);
        }

        public void a(a aVar) {
            if (aVar != null) {
                if (this.c == null) {
                    this.c = Collections.synchronizedList(new ArrayList());
                }
                this.c.add(aVar);
            }
        }

        public boolean equals(Object obj) {
            if (obj instanceof b) {
                return ((b) obj).a.equals(this.a);
            }
            return super.equals(obj);
        }
    }

    /* compiled from: FileLoader */
    public interface a extends c.c.b.b.d.e.a {
        File a(String str);

        void a(String str, File file);

        File b(String str);
    }

    public c(Context context, o oVar) {
        this.d = context;
        this.c = oVar;
        this.a = Collections.synchronizedMap(new LinkedHashMap());
    }
}
